def measure():
    """
    返回当前温度
    :return:
    """
    print('开始测量')
    temp = 18
    wetness = 10
    print('测量结束')
    return temp,wetness


def demo(num,num_list):
    # num = num +num
    num +=num
    # num_list.extend(num_list) 调用方法不修改变量的引用
    #外部数据同样改变
    num_list += [4,5,6]     # 若是 num_list = num_list + [4,5,6]则外面不会改变
    print(num)
    print(num_list)
    print('代码完成')


if __name__ == '__main__':

    # ret = measure()
    # ret1,ret2 = measure()
    # print(ret)
    # print(ret1,ret2)

    # a = 10
    # b = 5
    # a,b = b,a
    # print(a,b)
    num = 5
    num_list = [1,2,3]
    demo(num,num_list)
    print(num,num_list)